package com.smartstate.dataManagement.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smartstate.dataManagement.dto.*;
import com.smartstate.dataManagement.entity.EquipmentConfiguration;
import com.smartstate.dataManagement.vo.DeviceAlarmVO;
import com.smartstate.dataManagement.vo.DeviceAttributeVO;
import org.eclipse.paho.client.mqttv3.MqttException;

public interface EquipmentConfigService extends ServiceBase<EquipmentConfiguration> {


    Page<DeviceAttributeVO> deviceAttribute(PageDTO<EquipmentDTO> pageDTOO);

    Integer deleteDeviceAttribute(String deviceId,String attributeAlias);

    int addDeviceAttribute(DeviceAttributeDTO deviceAttributeDTO);

    Integer updateDeviceAttribute(AttributeDTO attributeDTO);

    Page<DeviceAlarmVO> deviceAlarmPage(PageDTO<DeviceAlarmDTO> pageDTO);

    Integer deviceAlarmEdit(DeviceAlarmDTO deviceAlarmDTO) throws MqttException;

    Integer enabledAttribute(AttributeDTO attributeDTO);
}